package com.iwe3.protal.service;

import com.iwe3.protal.entity.UserEntity;
import com.iwe3.protal.mapper.UserMapper;
import com.iwe3.protal.view.LoginView;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService{
    private final UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public UserEntity login(LoginView view) {
        return userMapper.login(view);
    }
}
